<@user.user_html>
    
    <div class="clear"></div>
	

    <div class="swarp">
    	<#-- 嵌入导航-->
		<#include "/WEB-INF/content/include/user/app.ftl">
        <div class="srightwarp">
        	<div class="xwarp" style=" margin:0px; width:750px; overflow:hidden;">
            	<div class="xtitle">
                	<ul>
                    	<li class="check"><a href="${base}/user/space/notice/">全部通知</a></li>
                        <li><a href="${base}/user/space/notice/index!add">新的通知</a></li>
                    </ul>
                    <div class="clear"></div>
                </div>
                <div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;">

                    <div class="clear"></div>
                
					<div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;" id="notice_list">
	                	<#if noticePage??&&noticePage.result??>
	            		<#list noticePage.result as notice>
	            		<div class="secretBox">
	                    	<div class="secretLeft">
	                        	<div></div>
	                            <h3><a href="${base}/user/space/notice/index!add?id=${(notice.id?c)!}">${(notice.title)!} </a></h3>
	                            <div>${(notice.content)!}    </div>
	                        </div>
	                        <div class="secretRight">
	                        	<div class="secretImg">
	                            		<em>通知日期： ${(notice.createDate?string("yyyy-MM-dd"))!}</em> 
	                                
	                            </div>
	                            <div class="secretBtn">
	                            	<a href="${base}/user/space/notice/index!add?id=${(notice.id?c)!}">编辑</a>
	                            	<a href="#" onClick="delNotice(${(notice.id?c)!})">删除</a>
	                            </div>
	                        </div>
	                        <div class="clear"></div>
	                    </div>
	                    </#list>
	                    </#if>
						<@user.pagination_user div="notice_list" />	
                    	<div class="clear"></div>
            		</div>

            	</div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
<script type="text/javascript">
	function delNotice(id){
		if(window.confirm("你确认删除该条公告记录吗？该操作无法撤销.")){
			window.location.href="${base}/user/space/notice/index!remove?id=" + id;
		}
	}
</script>
</@user.user_html>


